import request from '@/config/axios'
/**
 * 分页查询办公楼
 */
export const pageQuery = (params) => {
  return request.get({ url: '/office/building/page-query', params })
}

/**
 * 新增办公楼
 */
export const create = (data) => {
  return request.post({ url: '/office/building/create', data })
}

/**
 * 更新办公楼
 */
export const update = (data) => {
  return request.put({ url: '/office/building/update', data })
}

/**
 * 获取单个办公楼
 */
export const singleGet = (id) => {
  return request.get({ url: '/office/building/single-get?id=' + id })
}

/**
 * 根据buildingId获取办公楼层
 */
export const simpleFloorGet = (id) => {
  return request.get({ url: '/office/building/simple-floor-get?id=' + id })
}

/**
 * 根据buildingId获取办公楼单元
 */
export const simpleUnitGet = (id) => {
  return request.get({ url: '/office/building/simple-unit-get?id=' + id })
}
